﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Demo08</title>
    <style type="text/css">
        h2, h3 {
            text-align: center;
        }

        .MyTable {
            margin: 10px auto;
            border-collapse: collapse;
        }
    </style>
</head>
<body>
    <table width="1000" border="1" class="MyTable">
        <tr>
            <th>部门名称</th>
            <th>部门人数</th>
            <th>工资总和</th>
            <th>平均工资</th>
            <th>最高工资</th>
            <th>最低工资</th>

        </tr>
        @foreach (var item in ViewBag.listView)
        {
            <tr>
                <td>@item.部门名称</td>
                <td>@item.部门人数</td>
                <td>@item.工资总和</td>
                <td>@item.平均工资</td>
                <td>@item.最高工资</td>
                <td>@item.最低工资</td>

            </tr>
        }
    </table>
</body>
</html>
